package com.evola.dbsm.commands
{
	import com.evola.dbsm.service.impl.ProjectsService;
	import com.evola.dbsm.view.project.edit.ProjectEditEvent;
	
	import org.robotlegs.mvcs.Command;
	
	public class CreateProjectCommand extends Command
	{
		
		[Inject]
		public var event : ProjectEditEvent;
		
		[Inject]
		public var service : ProjectsService;		
		
		public function CreateProjectCommand()
		{
			super();
		}
		
		override public function execute():void{
			
			service.addProject(event.project);				
		}
	}
}